package com.zhny.sensor.dao;

import com.zhny.sensor.entity.PoultryCategory;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @Auther: zhy
 * @Date: 2019/11/22
 * @Description: 禽类品种信息管理
 */
public interface PoultryCategoryRepository extends JpaRepository<PoultryCategory,String> {

    List<PoultryCategory> findAllByCreateBy(String createBy);

    List<PoultryCategory> findAllByNumberAndCreateBy(String number, String createBy);
}
